

    
//---------------- 

export const initialState = {
    userId: '11111',
    token: '22222',
};

export const reducer= (state, action) => {
    console.log("state===",state)
    switch (action.type) {
        case 'updateUserId':
            return {
                ...state,
                userId: action.data
            };
        case 'updateToken':
            return {
                ...state,
                token: action.data
            };
        default:
            return state;
    }
}

